package com.woniu108.order.model.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 积分兑换订单
 * </p>
 *
 * @author yanxi
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderScore implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 积分兑换订单编号
     */
    @TableId(value = "order_score_num", type = IdType.INPUT)
    private String orderScoreNum;

    /**
     * 用户编号
     */
    private String userId;

    /**
     * 积分订单状态
     */
    private Integer orderScoreState;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     * 积分商品编号
     */
    private Integer scoreProductId;

    /**
     * 使用总积分
     */
    private BigDecimal totalScore;

    /**
     * 地址编号
     */
    private Integer addressId;


}
